package com.dz.risk.controller;

import com.dz.risk.common.ResponseVO;
import com.dz.risk.service.RiskFactorIndicatorsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author samsara
 * @className RiskFactorIndicatorsController
 * @date 2021/9/9 16:06
 */
@RestController
@RequestMapping("dz-ftsp/stest/riskFactorIndicators")
@Api(tags = "风险因子指标api", value = "风险因子指标api接口")
@Slf4j
public class RiskFactorIndicatorsController {

    @Autowired
    RiskFactorIndicatorsService riskFactorIndicatorsService;

    /**
     * 获取风险因子指标
     *
     * @param
     */
    @ApiOperation("获取风险因子指标")
    @GetMapping(value = "/list")
    public ResponseVO add() {
        return ResponseVO.ok(riskFactorIndicatorsService.getList());
    }

}